/**
 * Copyright (C), 2015-2020, 新华三技术有限公司
 * FileName: Organization
 * Author:   c10709
 * Date:     2020/12/2 16:50
 * Description: 组织信息
 * History:
 * <author>     <time>          <version>    <desc>
 * c10709      2020/12/2 16:50  v1.0        新建类
 */
package com.example.demo.ldap.entity;

import org.springframework.ldap.odm.annotations.Attribute;
import org.springframework.ldap.odm.annotations.Entry;

/**
 * 〈一句话功能简述〉<br> 
 * 〈组织信息〉
 *
 * @author c10709
 * @create 2020/12/2 16:50
 * @since 1.0.0
 */
@Entry(base = "cn=orgs,O=CAH", objectClasses = {"cahOrganization", "organizationalUnit", "top"})
public class Organization {

    @Attribute(name = "ou")
    private String ou;

    @Attribute(name = "cahOrgName")
    private String orgName;

    @Attribute(name = "cahSupervisoryDepartment")
    private String superDepartment;

    @Attribute(name = "cahTopnodeCode")
    private String topOrgCode;

    @Attribute(name = "displayName")
    private String displayName;

    public String getOu() {
        return ou;
    }

    public void setOu(String ou) {
        this.ou = ou;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getSuperDepartment() {
        return superDepartment;
    }

    public void setSuperDepartment(String superDepartment) {
        this.superDepartment = superDepartment;
    }

    public String getTopOrgCode() {
        return topOrgCode;
    }

    public void setTopOrgCode(String topOrgCode) {
        this.topOrgCode = topOrgCode;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Attribute(name = "description")
    private String description;

    @Override
    public String toString() {
        return "Organization{" +
                "ou='" + ou + '\'' +
                ", orgName='" + orgName + '\'' +
                ", superDepartment='" + superDepartment + '\'' +
                ", topOrgCode='" + topOrgCode + '\'' +
                ", displayName='" + displayName + '\'' +
                ", description='" + description + '\'' +
                '}';
    }
}